package com.ruoyi.web.controller.pacs;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.PacsStudy;
import com.ruoyi.system.service.IPacsStudyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 检查Controller
 * 
 * @author ruoyi
 * @date 2025-03-09
 */
@RestController
@RequestMapping("/pacs/worklist")
public class WorklistController extends BaseController {
    @Autowired
    private IWorklistService worklistService;

    @GetMapping("/list")
    public TableDataInfo list(WorklistQuery query) {
        startPage();
        List<WorklistVO> list = worklistService.selectWorklistList(query);
        return getDataTable(list);
    }

    @PostMapping("/upload")
    public AjaxResult uploadZip(MultipartFile file) throws Exception {
        // 模拟长时间处理
        Thread.sleep(2000);
        return AjaxResult.success("上传成功");
    }
}
